<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3.作业</title>
</head>

<body>
    <script>
        var name = prompt('请输入姓名');
        var age = prompt('请输入年龄');
        var sex = prompt('请输入性别');

        console.log('用户姓名:'+name);
        console.log('用户年龄:'+age);
        console.log('用户性别:'+sex);


        var a = prompt("你现在多少岁了");
        var d = 5 + +a;
        // var d = a - 5;
        alert('我猜你，今年打概' + d + '碎了');


        var a1 = "皮卡丘";
        var b1 = "小智";
        console.log(a1,b1);
        var c1 = a1;
        a1 = b1;
        b1 = c1;
        console.log(a1,b1);

    </script>
</body>

</html>